/*
 * Copyright (c) 2008 Openviewing
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Created: 03-Sep-2006 19:07:04
 */
package org.openviewing.foundation.control.factory.properties;


/** Test helper bean.
 *
 * @author Matthew
 *
 */
public class MockObject implements MockInterface
{
	// Attributes //////////////////////////////////////////////////////////////
    private String          string  = null;
    private Integer         integer = null;
    private MockInterface   mock    = null;
    // Private Operations //////////////////////////////////////////////////////
    
    // Public Operations ///////////////////////////////////////////////////////
    /** Test accessor.
     * @return An integer value.
     */
    public final Integer getInteger()
    {
        return integer;
    }
    /** Test mutator.
     *
     * @param i The integer value.
     */
    public final void setInteger(final Integer i)
    {
        this.integer = i;
    }
    /** Test accessor.
     *
     * @return A string value.
     */
    public final String getString()
    {
        return string;
    }
    /** Test mutator.
     *
     * @param s The string value.
     */
    public final void setString(final String s)
    {
        this.string = s;
    }
    /** Test accessor.
     *
     * @return Mock bean.
     */
    public final MockInterface getMock()
    {
        return this.mock;
    }
    
    // Constructor /////////////////////////////////////////////////////////////
    /** Default constructor. */
    public MockObject()
    {
        super();
    }
    /** Attribute constructor.
     * @param s A string value.
     * @param i An integer value.
     */
    public MockObject(final String s, final Integer i)
    {
        this();

        this.string = s;
        this.integer = i;
    }
    /** Attribute constructor.
     * @param s A string value.
     * @param i An integer value.
     * @param m A mock bean.
     */
    public MockObject(final MockInterface m, final String s, final Integer i)
    {
        this(s, i);

        this.mock = m;
    }
}
